package MyLinkedList;

import java.util.LinkedList;

public class LinkedList1 {
    public static void main(String[] args) {
        LinkedList<Integer> list = new LinkedList<>();
        list.add(1);
        list.add(1);
        list.add(1);
        list.addFirst(999);
        System.out.println(list.getFirst());
        System.out.println();
    }
}
